//
//  NetWorkTool.h
//  LianShangBao
//
//  Created by 主事丫环HU on 2020/8/28.
//  Copyright © 2020 主事丫环. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NetWorkTool : NSObject
+ (void)GET:(NSString *)url param:(id)param success:(void (^)(id dic))success other:(void (^)(id dic))reason fail:(void (^)(NSError *error))fail needUser:(BOOL)need;


+ (void)POST:(NSString *)url param:(id)param success:(void (^)(id dic))success other:(void (^)(id dic))reason fail:(void (^)(NSError *error))fail needUser:(BOOL)need;

+ (void)POST:(NSString *)url parameters:(id)parameters progress:(void (^)(id progress))downloadProgress complation:(void (^)(id dic))complaction failure:(void (^)(NSError *error))failure;

//上传单张图片接口
+ (void)UploadPicWithUrl:(NSString *)url param:(NSDictionary *)params key:(NSString *)key image:(id)image withSuccess:(void (^)(id dic))success failure:(void (^)(NSError *error))failure;

+ (void)newUploadPicWithUrl:(NSString *)url param:(NSDictionary *)params key:(NSString *)key image:(id)image withSuccess:(void (^)(id dic))success failure:(void (^)(NSError *error))failure;

+ (void)clickLogin;
//添加产品上传图
+ (void)apppicUploadPicWithUrl:(NSString *)url param:(NSDictionary *)params key:(NSString *)key image:(id)image withSuccess:(void (^)(id dic))success failure:(void (^)(NSError *error))failure;
@end

